﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:FruitWeigher="clr-namespace:PriceCuttingWar"
     
    x:Class="PriceCuttingWar.MainPage"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    shell:SystemTray.IsVisible="True">
	<phone:PhoneApplicationPage.Resources>
		<Storyboard x:Name="ANI_Zhengque">
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Right" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00">
					<DiscreteObjectKeyFrame.Value>
						<Visibility>Visible</Visibility>
					</DiscreteObjectKeyFrame.Value>
				</DiscreteObjectKeyFrame>
				<DiscreteObjectKeyFrame KeyTime="00:00:00.5000000">
					<DiscreteObjectKeyFrame.Value>
						<Visibility>Collapsed</Visibility>
					</DiscreteObjectKeyFrame.Value>
				</DiscreteObjectKeyFrame>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Name="ANI_Cuowu">
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Wrong" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00">
					<DiscreteObjectKeyFrame.Value>
						<Visibility>Visible</Visibility>
					</DiscreteObjectKeyFrame.Value>
				</DiscreteObjectKeyFrame>
				<DiscreteObjectKeyFrame KeyTime="00:00:00.5000000">
					<DiscreteObjectKeyFrame.Value>
						<Visibility>Collapsed</Visibility>
					</DiscreteObjectKeyFrame.Value>
				</DiscreteObjectKeyFrame>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
	</phone:PhoneApplicationPage.Resources>
	<phone:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</phone:PhoneApplicationPage.FontFamily>
	<phone:PhoneApplicationPage.FontSize>
		<StaticResource ResourceKey="PhoneFontSizeNormal"/>
	</phone:PhoneApplicationPage.FontSize>
	<phone:PhoneApplicationPage.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</phone:PhoneApplicationPage.Foreground>
    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="705" MinHeight="705"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="24,24,0,12">
            <TextBlock x:Name="ApplicationTitle" Style="{StaticResource PhoneTextNormalStyle}" Foreground="Black" Text="优惠券大作战 1.0 -nowpaper-中游在线" Visibility="Collapsed"/>
        </StackPanel>
        <Grid x:Name="GameMain" Margin="8,66,8,48" Visibility="Collapsed">

        	<FruitWeigher:UIProgress VerticalAlignment="Top" Height="104"/>
        	<TextBlock x:Name="ScoreSum" HorizontalAlignment="Right" Width="142" FontFamily="Comic Sans MS" FontSize="48" FontWeight="Bold" Text="9999" TextAlignment="Center" TextWrapping="Wrap" Foreground="#FF007B97" Margin="0,36,0,262" d:LayoutOverrides="HorizontalAlignment"/>
        	<TextBlock Margin="0,36,125,0" FontFamily="Comic Sans MS" FontSize="48" FontWeight="Bold" Text="Score:" TextAlignment="Center" TextWrapping="Wrap" Foreground="#FF007B97" Height="68" VerticalAlignment="Top" HorizontalAlignment="Right" Width="179"/>
  		
        	<Grid Margin="0,54,0,2" VerticalAlignment="Center" HorizontalAlignment="Center">
        		<StackPanel Margin="8,8,8,0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
        			<StackPanel x:Name="W1" Margin="8,67,8,0" HorizontalAlignment="Center" Width="211" VerticalAlignment="Center">
        				<FruitWeigher:UICard x:Name="Card1" d:LayoutOverrides="Width" Margin="0,0,5,0"/>
        				<FruitWeigher:UICard x:Name="Card2" Margin="0,26,5,4" d:LayoutOverrides="Width"/>
        				<FruitWeigher:UICard x:Name="Card3" Margin="0,26,5,4" d:LayoutOverrides="Width"/>
        			</StackPanel>
        			<StackPanel x:Name="W2" Margin="8,67,8,0" HorizontalAlignment="Center" Width="212" VerticalAlignment="Center">
        				<FruitWeigher:UICard x:Name="Card4" Margin="0,4,5,0" Height="150" Width="200"/>
        				<FruitWeigher:UICard x:Name="Card5" Margin="0,26,5,0" d:LayoutOverrides="Width"/>
        				<FruitWeigher:UICard x:Name="Card6" Margin="0,26,5,0" d:LayoutOverrides="Width"/>
        			</StackPanel>
        		</StackPanel>
        	</Grid>
        	<Path x:Name="Right" Fill="Red" Stretch="Fill" Stroke="Black" StrokeThickness="3" Margin="49,221,8,182" UseLayoutRounding="False" Data="M216,178.5 L179.5,196 L262,277 L475,155.5 L457,134.5 L269.5,220 z" Visibility="Collapsed"/>
        	<Path x:Name="Wrong" Fill="Red" Stretch="Fill" Stroke="Black" StrokeThickness="3" Margin="11.266,101.371,22.016,113.621" RenderTransformOrigin="0.500000187916136,0.5" UseLayoutRounding="False" Data="M83.500031,1.5 L119.50003,1.5 L119.50003,83.500038 L201.49998,83.500038 L201.49998,119.50004 L119.50003,119.50004 L119.50003,201.5 L83.500031,201.5 L83.500031,119.50004 L1.5,119.50004 L1.5,83.500038 L83.500031,83.500038 z" d:LayoutRounding="Auto" Visibility="Collapsed">
        		<Path.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="45"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Path.RenderTransform>
        	</Path>

        </Grid>

  	<FruitWeigher:UIStartGameInterface x:Name="StartGameInterface" Margin="0,6,0,-6"/>
  	<FruitWeigher:UIEndMessageBox x:Name="EndMessageBox" Width="Auto" Height="Auto" Visibility="Collapsed" />
  	<TextBlock TextWrapping="Wrap" Text="中游在线-nowpaper" VerticalAlignment="Top" Margin="161,8,0,0" Foreground="Black" TextAlignment="Right" Grid.Row="1"/>
    	
    </Grid>


</phone:PhoneApplicationPage>
